# 蓝色天空
# 创建一个背景为蓝色的Pygame窗口

import pygame
import sys


class BlueSky:

    def __init__(self):
        pygame.init()
        pygame.display.set_caption("Blue Sky")
        self.screen = pygame.display.set_mode((400, 400))

    def run(self):
        while True:
            for event in pygame.event.get():
                if event.type == pygame.QUIT:
                    sys.exit()

            self.screen.fill((0, 0, 255))
            pygame.display.flip()


if __name__ == '__main__':
    bluesky = BlueSky()
    bluesky.run()
